package com.powerfl.frm.taf{
	
	final internal class TAForder{
		
		internal var isComplete:int;
		internal var order:Function;
		
		private var _param:Array;
		
		
		public function TAForder(){}
		
		internal function init( $order:Function, $param:Array ):TAForder{
			order = $order;
			_param = $param;
			isComplete = 0;
			return this;
		}
		internal function collect():TAForder{
			order = null;
			_param = null;
			return this;
		}
		internal function run():void{
			order.apply( null, _param );
		}
		internal function complete():void{
			isComplete = -1;
		}
	}
}